<template>
  <el-table :data="list" v-loading="loading">
    <el-table-column prop="id" label="编号" width="80" align="center" />
    <el-table-column label="标题">
      <router-link slot-scope="{row}" :to="`/feedback/${row.id}`" v-text="row.title" class="link" />
    </el-table-column>
    <el-table-column prop="typeCN" label="分类" width="100" align="center" />
    <el-table-column prop="stateCN" label="状态" width="100" align="center" />
    <el-table-column label="创建时间" width="140" align="center">
      <timeago2
        slot-scope="{row}"
        :date-time="row.created_at"
        timeago="none"
        format-as="date-time"
      />
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: 'list', // 问卷列表
  props: {
    list: Array,
    loading: Boolean,
  },
};
</script>

<style></style>
